const getters = {
  todoDone: (state:any) => state.test.todos.filter((todo:any) => todo.done),
  getTodoById: (state:any) => (id:any) => state.test.todos.find((todo:any) => todo.id === id),
  token: (state:any) => state.user.token,
  avatar: (state:any) => state.user.avatar,
  name: (state:any) => state.user.name,
  content: (state:any) => state.user.content
}
export default getters
